attribute selection

Reduced the lines of code created in order to reduce the code for efficiency.