cleaned up, replaced unref with drop