use id instead of getId()