use get method instead direct access to avoid unexpected errors