curving around the top and bottom