avoid useless temporary variables