fixing pointer