almost done with recom
fuuu pythoonn
improved overall function