reads attributes