added some bad animation code