deleted old main call