remove duplicate api direction function declaration