reduce relative path