return int instead of null

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>