eliminate TypeError