prelimiary animate utility funciton