added clearFrame function