checking for bugs