something is messed up with finding solutions..getting different answers depending on where the function is called
attempted debugging...no luck. giving up for now as almost everything works