better to init value to -1 and save one db query