added support for animation