resetting environment