little utility method instead of constructor