set callback when first element is callback