initial code written