update function getRequestCode()