efficient handling of Y and YYT