Changing types to var

Changing types to var