improved rem mixin and added back the raw function