remove repeated gives_num function