change *.txt filetype order to robot function works