singleton: reduced code