working on frame generator