added base code for animation