added a space in rebuild function