removes unsued function

keeps the code cleaner