format and make an attribute private