changed datatypes to streamtypes