bugs and print functions