truncate in gen_lw()