fixed fundamental bug in basic_number