input is single line, works now for categorical data