made resizing index4