temp
temp
create forwardIndex func