Replacing all with variables