solve c in stupid method...