code refractor.