modified datafames to write to STDOUT #5