substitute star to 0 or 1