fixing error on curly bracket