call callback correctly inside peek