make attr of elements