using proper template Xs