some odb functions