added persontype in save_custom_fields method