create and delete functions for lenv