fixed return value for policy function