modified reset environment