remove un-needed np.array
remove extra space