update code to remove unused code