changed mutation logic.