update add class method, get real id from fake id