public static void searchmenu()
    {
        System.out.println("\n"+"press key for desired option: ");
        System.out.println("1 - naive search");
        System.out.println("2 - bad-character-Search");
        System.out.println("9 - back");
        int choice= IO.userIntegerInput("please choose:");
        switch(choice)
        {
            case 1:
            	int userChoice1 =IO.userIntegerInput("choose id that should be scanned");
            	while(inputOkay(userChoice1)==false)
            	{
            		System.out.println("unknow command"); 
            		userChoice1 =IO.userIntegerInput("choose id that should be scanned");
            	}
            	String pattern1 =IO.userStringInput("please enter pattern:");
            	Search.simpleSearch(fastaFileList.get(userChoice1).getDataBase(),pattern1);
            	String saveDestination1 =IO.userStringInput("please enter path to save results:");
            	IO.writeSearchResult(fastaFileList.get(userChoice1).getDataBase(), saveDestination1);
                break;
            case 2:
            	int userChoice2 =IO.userIntegerInput("choose id that should be scanned");
            	while(inputOkay(userChoice2)==false)
            	{
            		System.out.println("unknow command"); 
            		userChoice2 =IO.userIntegerInput("choose id that should be scanned");
            	}
            	String pattern2 =IO.userStringInput("please enter pattern:");
                Search.badCharacter(fastaFileList.get(userChoice2).getDataBase(),pattern2);
                String saveDestination2 =IO.userStringInput("please enter path to save results:");
                IO.writeSearchResult(fastaFileList.get(userChoice2).getDataBase(), saveDestination2);
                break;
            case 9:
                mainmenu();
                break;
            default:
                System.out.println("unknow command");
        }
        searchmenu();
    
    }