added stability checks to decompose