adds top and botom boundaries