moved print debug