fixed map on index. I am not proud