changed sprite access