identified error in unused code for future reference