bug and print