adding function to remove comment