getUsersEmails function is added again