Change type of function to get one solution.