made more general for foreman