modify function layout