created back end for tips