When rules bring freedom