added 'each method'