remove unecessary assertions for scalars.