all code in proper order and in head