indexed memory
updated some things