deal with the space problem