fix conditional now that I'm using this in production. update example