rewrite of lf