confirm email and optimise