went through error checking section