remove unused parameter
throw an error when it doesn't receive any bytes