fix division by zero. And add proper credits