better example logic