added loading function feature
resumitting a function reset the matches of that function