refactor of showcase patterns