fix line change anim
remove paar if statments with math min-max and speen up animation