replaced a couple functions for finding different solutions with one sweet function