add collection directive