updates entity stuff