changed from parameter to include name AND email