move the function outside of this function