modify rebuild to build