removed tabs and tried to adhere to coding style.