why only one value is stored in one variable?