updated answer to fit solutions