vinay - combined stable solution, ii again 1