avoid extra atom at the end of the targets list