moved parameter methods and fixed code indentation