added fourth variable