template: added full objects as argument