added callback for email