added stuff for distance-dependent splicing