added function to help making animations