fixed errors and added meail