made an initializer for pather