use inherit option to avoid duplicated code