updated for use with indicies