updated rob script for iPhone