move template to f90 file