added delete_values() and delete_undef_values() functions