read attributes