added functions for option setting