removed attribute input type, instead using data type