added a function to delete array entries