added partition check