added for_in trainnig
searchAllNum added