IMPROVE: optimize frame generation