removed odd-number constraint check from create_path and get_or_create_path