modification for ios7