woops, fixed mistaken use of pointer