solving problem