adding version check