get frames method