Touch process code stops voltage reference from working

thanks for your help, i had already removed that piece of code when i posted all my code earlier, which is why couldn't follow your last post