fixed all divisions by 0