animations parameter to constructor