changed primitive long to refrence type