do some clearup for the code