closed #15 validate choice type