use the $element in the function