undid some changes I did to a function that I'm no longer using.