removed unused argument
template: full object passed in as second argument