for ios6 and ios7