added 2 instances of main