add type signature for skip function