removed a trailing comma in calculate clipping