change wuclass members to private and add getter