added binary conversion before ocmputation