modify to fit ios7