changed strategy for initializing first frame