fixing syntax problems