fixing syntax in code