moved ff computation to cell