modify rankhospital.R