delete print statements for debug