change for ipad compatibility