changing to var keyword per line