change entities array in vector