smal changes, Macros(ish) to rep assign type