changed lastdF behavior, not tested