adapt iOS6 and alter