customizing rules method