foundation data generic method