some functions are replaced by STL build in function.