set optimization wip