frame is drawn