first attempt at stability checking