implement the basic anmation functions