removed unnecessary clones in listen proc