add two different search & refactor bin file