changed to general specification of y.offset in f2