removed exit function which broke repeering loop