also adapt result check from readAttribute