added device check