replaced UNUSED and assert combination by a fixed up assert macro - thanks luis! :)