find best factor from dev