print each object in console