Change id to i

The name of variables will be changed very soon to some meaningful names