adjusting tab spacing
breaking up logic and adjusting parameters