added responsecode variable