use getter to manage attribute