faster convert to numpy array