mplement FORL and FORI