fixed zero division error