update spriting logic