implemented simple animation