adding device version check