restore for ios5 compatibility