progess on attributed function defintion