Algorythms improved