after fixing division bug