logic issue closed