working on better plane animation algorithm