delete helper method