replacement for FR function