add policies code