better layout
better span and offset