started working on code state