as there is a default value, I thnk the getattr is not useful here.