refactring export contacts