identify data types and generating rule for each