removed tabs and one unused variable