adding a get binary function