made cal_site_type inline