added care for the upper frames