update for sprites