expander function defined