tried to add a new function here, still need to find out how to make it use it properly