tidying up; correcting a syntax error