got rid of some syntax errors in the controllers