deleted totals and fix f'up with js type