Removed unnecessary code
Made colPtr constant