removed InvalidPointerException, didn't use it