found mistake in reversing when only 1 element was in list. fixed