incorrect indexes were being used, d'oh