public void searchByName (LYNXsys system, String query, int page) { // search for students by by name
		for (int i = 0; i < system.getUsers().size(); i ++) { // loop through arraylist of students
			if ((system.getUsers().get(i).getFirstName().equalsIgnoreCase(query)) || (system.getUsers().get(i).getLastName().equalsIgnoreCase(query)) || (system.getUsers().get(i).getFirstName() + " " + system.getUsers().get(i).getLastName()).equalsIgnoreCase(query)){ // check if book title matches search query
				displayedSearchResults.add(new StudentSearchResult (system.getUsers().get(i), system.getUsers().get(i).getID() + ": " + system.getUsers().get(i).getLastName() + ", " + system.getUsers().get(i).getFirstName() + ". "));
			}
		}
		for(int i = ((page-1)*13); i < page*13; i++){
			if (i < displayedSearchResults.size()) {
				displayedSearchResults.get(i).getDisplayText().setEditable(false);
				displayedSearchResults.get(i).getDisplayText().setBackground(Color.pink);
				displayedSearchResults.get(i).getDisplayText().setBounds(500,270 + (21*(i-(13*(page-1)))),400,20);
				displayedSearchResults.get(i).getUserButton().setBounds(460,270 + (21*(i-(13*(page-1)))),32,20);
				add(displayedSearchResults.get(i).getDisplayText(),0);
				add(displayedSearchResults.get(i).getUserButton(),0);
			}
		}
		for (int i = 12; i < displayedSearchResults.size(); i = i + 13) {
			if (displayedSearchResults.size() > i) {
				pages.add(new JButton());
				pages.get(pages.size() - 1).setBounds(620 + (45*(((i-12)/13)+1)),547,43,19);
				add(pages.get((((i-12)/13)+1)),0);
				pages.get((((i-12)/13)+1)).addActionListener(getAction());
			}
		}
		repaint(460,270,510,500);
		lastSearch = 1;
	}