added main while cicle