implement binary module