move id from private to in controller