update function getInputClassName

we can use this easy way