corrected temporaries shadow memory