updated element() to be a little more efficient