implement remainder of islands()