makin private variables tota, size