migration to backbone: adjustment of the old code