update loop to not include impossible element