add method to check partition table