use key as an arg