pass correct pointer