formatting issues

spacing, brackets, misplaced commas