added method to interact with animation