wip logic