added small function.