code definitions