working still testing on references