adding locals