deleted end variable, was not used