we don't accept illegal input. bug fixed