use values to turn attributes to array