create rule cleanup