polishing receiver code