made email adddres optional paramater