to address binary type issue.