modify sprite and add some function