check buffer vounds