rename data.txt to outputdata.var6.txt
fix logic issue: calculate betta correctly now