add sequence function to helpers