checking boundary value