implemented span relations