modify api controller