update some sprite logic