repasting old main in new main