improve algorithm and add delete world function