update call to main