bug fix - added each method