using element instead of elementId