add return in functions whose types return but do not actually return