my solution to the noninjective inverse problem