Removed useless function
Fixed brace position