removed set policy. must be done outside