fix locals conflicting with class variables