used wrong type