modified insert in env