removed compiler warnings (ios 6)