refactoring
cut cut cut cut
replace appendo with append* implemented by conda
modify function type
improve loop/recur