changes for ios compatability