updated for stability