fixing minor syntax problems