use an element to get correct position