changed df to double