delete use reg to set Environment