trying to fix the code to work with fast reading. no luck. set everything back because I could not find all the errors.