pass element through callback functions