removing extra param and correcting whitespace