remove mlen and nlen