uncommenting imap function