adding data tool functions