added drop to rebuild func