implemented basic animation