debugging the change to df calculation