finding whether the device is not moving