fixed minor syntax bugs