added compactWidth method