break out and test sprite function