made this example better