add each_context method