id's need to be zero based.