removed isBackground, redundant with iteration