adding animation wrapper