change reference to int