still does not work for addNewEntry method
still does not work for addNewEntry method