id is a protected variable per pep8, why i changed it inside this function