find most effective implementation