fix of sinatra method