type guard some more stuff