working on frame reset