ceck_contacts rewrite