get policy from 3 tuples