fixing wrong pointer?