changed x___ to list not ndarray