replace main 3 and 2