declared necessary variables