attempting to determine device orientation