modified for my sprites