added getCode