updated contact repository initialize logic