think my methds are functional, just having trouble with comparing type error