i added a function