removed unused code
resolve ghci -Wall warnings