adding norm.data.function