working on smarter solve