move names otside the loop