added function reference for directive