added device method to UIDevice