takeBest function devel