removing paramerter and fix curly braces problem