changed debug stuff