use the right layout idiom