define to_s and path