using a naive df calculation because there were problems with the group df