simplyfied the example