added condition for site var