fixing after main call