make it return 0, not null