learn how to pass the options and reference to the element being used