simplified pre/code