wrote more functions over, stopped at the animation transistion for now