main executes