changed min damage section to work with arrays