restyling buildPlant.f90