error checking version