added begining of larson scanner
fixed gamma calculation