changed code to use new sprite