added partition tolerence