corrected typo for peek()