offset function
substract subpath