improve checking version