working with frenet frames