adding infinite loop