add type signature to fix untouchable error