element background logic;