removed call to main