moved all printing to debugging