changed indentation and spacing as per code review