We are having an infinite loop with loops + inner variable + partial though =_=