fixing syntax issue with }