made this example nicer