modified API of Data types