enlarge buffer size - need to fix later