added spanarc function, spanarc.i