genCondPDB() added(with bugs)