commented code with how to activate the functions