added iPhone var to fix update bug