potential buffer over flow problem