clean up some bad syntax