next frame handling makes more sense