add test. check case where no arms found. indices not indexes. use :: operator