fixed indentation and parameter issues