changed generate method; backend added to parameters