some notes on writing fortran code