better iOS compatibility