lib: better style