add environment function for changing descriptor