added emiting before animations