changed to locals