add type to inputs