added small lines to define gamma and ka in run