reimported small function for compatibility