typing error prototype