not valid choice error fixed