added some basic animation code