first step of generating a vis binary