changed version-checking syntax