usefull function for int to bit