a partial receive function example