fixed get_num() and get_unit() calls