multitargets functionality added