added prints to debug