removes second call to main