mailer done
working on the update function