resolve difference between device and simulator