added methods to animator class