refactored the code, comment delete is now a function.