modified rOUTER.PHP