(main) removing dead code