animate and deanimate declaration