added targetlist
slight code tweak