clean up

initializing in function