fixing debug stuff