getting rid of a function thats not used.