added iPad check