yay logic