added another potential ending with an extra conditional