added functionality to sprites