writing out parameters - control for gender and group