removing unneccesary double struct pointer