animation done but bad solution