remove deprecated codes