ugliest design pattern ever haha