made get_allocation return a single row