simplifying version check