removing legacy api