replace with 0 and 1 problem