more type checking.