fixed critvalue error in boundary