changed stucture attribute type to int*