external function was using incorrect function for checking stablisation