edited the linemod code