updated call to main