fixing ranged function. removed old enmity set