adding if chunk