removed extraneous calls to binary - much faster now