found two functions in data.js