clean up rules