change attribute private member from name to key
adding comments