variables settings; findf function bug fix