prints out infinite loop