simplify cljs code