before -> index