fixin type checking