adding algorithm environment back