fix swap & temp