removed sleep in iOS callback that was causing errors