add functions for path