replace deprecated # comments