first version for Ratchet