removing printing from hook