added id field to models