avoids using a one-liner and uses a static method instead