naming functions and refacotoring create object loop