checks for input buffer size