use const and is-methods