adding register, not templating now used for this