added ios5 methods to resolve build errors