Deleted wrong derementation of id.
Deleted outcommented code.