removed an obsolete end keyword that caused a syntax error