refactoring
adding option to show specific attributes