cross file function