wrote custom function and facts for essential features