use array_map to get numeric ids