Corrected signature of pop and peek