avoided comparison with constant id