erased bug in code