adding pathStruct stack structure