use decorator to change name to id