fixed small syntax bugs from last commit