cleaning up bed+ before/after output