preparation for 'each' method