new getElements method