except to the extent prohibited by law