bugued code