changing the handling for new sprite