added necessary variables