yay clean logic