updated streamrecord getrecord method