create rb equivalent