updated core example