fix the fatal error beause of deprectade function name