updated rebuild