addin functions calls optimization