prep code written