fix some indexing crazyshit