changed mutliple var to one declaration