fix input type constraint