fixed valueType condition
added comment