making attribute more reusable