update and contact generator in loop trough array