fix pointer derefence