corrected reference to 'f' to be 'fold'