added function declaration to delete handles
fixed typo in list declaration