modify binary check