adding compatibility with iPad