loops working need if/else