modify methode changeFrame