move debugging statements in different block