renamed the predict function to a more indicative name