added each() to prototype