fixed error; improved readability