update style according to comment; add path variable to define saving location