added case 0 for switch(ra)