@nightshining added code to ipad