adding endwise for ruby endings