added ending statement

added ending statement