i should be using refereces