init driver
removing unused code
reformat code