remove debugging messages from error code