moved data converter to separate function
Added extra attributes with different data types