small general functions update.