works for small code, not astros animation, sorry