lots of bugs fixed regarding making an array of target