use new functions in rest of code