removed size_t for ff and algorithms