body load functions.