add function select file type