slove the space problem