put in custom animation class. Works well