changed new number assignment method