rewrite location with sprite