working on floc func again