initalized class and function variables