simpler binary conversion