fix begin block for sinatra syntax