remove debug prints in hook functions