changed the implementation in order to use with the sites which have the path field