adjusted formatting to adhere to java code conventions guidelines