print each element