updates sprite changes