putting in proper resopnse codes/response behavior