explicitly allocate memroy to pointers