lets convert encapsulated to use attributes
move to attributes instead of encapsulated