make setId as public method, and renamed it to setKey.