make top and bottom line optional