prepare with repc and fmt