make function on subpath