create rules for auto mapping