set heights

global function